package com.mipo.mybatis.mysql.mapper.impl;

import java.util.HashMap;
import java.util.Map;

import javax.annotation.Resource;
import org.apache.ibatis.session.SqlSessionFactory;
import org.mybatis.spring.support.SqlSessionDaoSupport;
import org.springframework.stereotype.Component;

import com.mipo.mybatis.model.UserModel;

@Component
public class EasyMsgBindDao extends SqlSessionDaoSupport {
    
	@Resource  
    public void setSqlSessionFactory(SqlSessionFactory sqlSessionFactory) { //û�����������������ֳ������±���Property 'sqlSessionFactory' or 'sqlSessionTemplate' are required ��������mybatisȡ�����Զ�ע��SqlSessionFactory �� SqlSessionTemplate;ͨ����AbstractBaseDao��ע������ԣ�����dao�̳и�AbstractBaseDao
        super.setSqlSessionFactory(sqlSessionFactory);
    }
	
    public UserModel queryEasyMsgBind(int id) {
    	System.out.println("zzzzzzzzzzz");
        Map<String, String> params = new HashMap<String, String>();
        params.put("id", id+"");
        return getSqlSession().selectOne("EasyMsgBind.queryEasyMsgBind",params);
    }

    
}
